package com.machine.service.user.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.machine.bean.User;
import com.machine.dao.user.UserDao;
import com.machine.service.user.UserServiceDao;

@Component(value="userService")
public class UserServiceDaoImpl implements UserServiceDao {
	
	private UserDao userDao;
	
	public UserDao getUserDao() {
		return userDao;
	}

	@Resource
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public void deleteUser(User user) {

	}

	@Override
	public User getUserById(int id) {
		return null;
	}

	@Override
	public User getUserByName(String username) {
		return null;
	}

	@Override
	public List<User> getUsers() {
		return null;
	}

	@Override
	public int save(User user) {
		return userDao.save(user);
	}

	@Override
	public void updateUser(User user) {

	}

	@Override
	public User getUser(String username, String password) {
		return userDao.getUser(username, password);
	}

}
